package com.netjava.pojo;

/**
 * Delivery entity.
 * 配送
 * @author MyEclipse Persistence Tools
 */

public class Delivery implements java.io.Serializable {

	// Fields

	private Integer deliveryId;
	private Product product;//配送的商品
	private String address;//送货的地址
	private String receiverName;//收件人的姓名(有可能不是用户本人)
	private Integer phone;//收件人的手机号码
	private Float postage;//邮费
	
	private String deliverTime;//发货时间
	private Integer deliverState=0;//是否发货，0：待发货；1：已发货
	private User user;//购买该商品的用户

	// Constructors

	/** default constructor */
	public Delivery() {
	}

	/** minimal constructor */
	public Delivery(Product product, String address, String receiverName,
			Integer phone, Float postage) {
		this.product = product;
		this.address = address;
		this.receiverName = receiverName;
		this.phone = phone;
		this.postage = postage;
		
	}

	/** full constructor */
	public Delivery(Product product, String address, String receiverName,
			Integer phone, Float postage, Integer deliverState) {
		this.product = product;
		this.address = address;
		this.receiverName = receiverName;
		this.phone = phone;
		this.postage = postage;
		this.deliverState=deliverState;
	}

	// Property accessors

	public Integer getDeliveryId() {
		return this.deliveryId;
	}

	public void setDeliveryId(Integer deliveryId) {
		this.deliveryId = deliveryId;
	}

	public Product getProduct() {
		return this.product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getReceiverName() {
		return this.receiverName;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}

	public Integer getPhone() {
		return this.phone;
	}

	public void setPhone(Integer phone) {
		this.phone = phone;
	}

	public Float getPostage() {
		return this.postage;
	}

	public void setPostage(Float postage) {
		this.postage = postage;
	}

	
	public String getDeliverTime() {
		return deliverTime;
	}

	public void setDeliverTime(String deliverTime) {
		this.deliverTime = deliverTime;
	}

	public Integer getDeliverState() {
		return deliverState;
	}

	public void setDeliverState(Integer deliverState) {
		this.deliverState = deliverState;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}